package com.gouwudai.gobbs.service.impl;

import java.util.List;

import com.gouwudai.gobbs.dao.IRuleDAO;
import com.gouwudai.gobbs.pojo.TbbsRule;
import com.gouwudai.gobbs.service.IRuleService;
import com.litt.core.common.Utility;

public class RuleServiceImpl implements IRuleService
{
	IRuleDAO ruleDAO;
	
	/**
	 * BUFFALO更新
	 * @param ruleId
	 * @param ruleMark
	 * @param ruleMoney
	 * @param ruleCredit
	 * @param ruleDeposite
	 */
	public void update(String ruleId,String ruleMark,String ruleMoney,String ruleCredit,String ruleDeposit)
	{
		ruleDAO.update(Utility.parseInt(ruleId),Utility.parseBigDecimal(ruleMark),Utility.parseBigDecimal(ruleMoney),Utility.parseBigDecimal(ruleCredit),Utility.parseBigDecimal(ruleDeposit));
	}

	public List listAll()
	{
		return ruleDAO.listAll();
	}
	
	public TbbsRule loadByCode(String ruleCode)
	{
		return ruleDAO.loadByCode(ruleCode);
	}

	public void setRuleDAO(IRuleDAO ruleDAO) {
		this.ruleDAO = ruleDAO;
	}

	
}